import { Layout } from '@fl/utils/routerHelper'

const pricingTool: AppRouteRecordRaw = {
    children: [
        {
            component: () => import('@/operations-pages/pricing-tool/index.vue'),
            meta: {
                title: '组合商品配置',
            },
            name: 'config-index',
            path: 'config-index',
        },
        {
            component: () => import('@/operations-pages/pricing-tool/quotation-list/index.vue'),
            meta: {
                title: '项目报价清单',
            },
            name: 'quotation-list',
            path: 'quotation-list',
        },
        {
            component: () => import('@/operations-pages/pricing-tool/component/basic-config.vue'),
            meta: {
                activeMenu: '/operations-pages/pricing-tool/config-index',
                title: '基础配置',
            },
            name: 'basic-config',
            path: 'basic-config',
        },
        {
            component: () => import('@/operations-pages/pricing-tool/quotation-list/component/edit-quotation-list.vue'),
            meta: {
                activeMenu: '/operations-pages/pricing-tool/quotation-list',
                title: '编辑报价清单',
            },
            name: 'edit-quotation-list',
            path: 'edit-quotation-list',
        },
        {
            component: () => import('@/operations-pages/pricing-tool/component/calc-item.vue'),
            meta: {
                activeMenu: '/operations-pages/pricing-tool/config-index',
                title: '计算项配置',
            },
            name: 'calc-item',
            path: 'calc-item',
        },
        {
            component: () => import('@/operations-pages/pricing-tool/component/calc-item-detail.vue'),
            meta: {
                activeMenu: '/operations-pages/pricing-tool/config-index',
                title: '计算项详情',
            },
            name: 'calc-detail',
            path: 'calc-detail',
        },
    ],
    component: Layout,
    meta: {
        alwaysShow: true,
        title: '组价工具',
    },
    name: 'pricing-tool',
    path: 'pricing-tool',
}

export default pricingTool
